.class public Lcom/privacy/checker/ui/UserPlanActivity;
.super Landroid/app/Activity;
.source "UserPlanActivity.java"


# static fields
.field private static d:I


# instance fields
.field private a:Landroid/widget/ImageView;

.field private b:Landroid/widget/TextView;

.field private c:Z


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .line 1
    sget v0, Les/di0;->gdpr_activity_user_plan:I

    sput v0, Lcom/privacy/checker/ui/UserPlanActivity;->d:I

    return-void
.end method

.method public constructor <init>()V
    .locals 1

    .line 1
    invoke-direct {p0}, Landroid/app/Activity;-><init>()V

    const/4 v0, 0x1

    .line 2
    iput-boolean v0, p0, Lcom/privacy/checker/ui/UserPlanActivity;->c:Z

    return-void
.end method

.method public static a(Landroid/content/Context;I)V
    .locals 1

    .line 1
    sput p1, Lcom/privacy/checker/ui/UserPlanActivity;->d:I

    .line 2
    new-instance p1, Landroid/content/Intent;

    const-class v0, Lcom/privacy/checker/ui/UserPlanActivity;

    invoke-direct {p1, p0, v0}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 3
    invoke-virtual {p0, p1}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V

    return-void
.end method

.method private a(Z)V
    .locals 1

    .line 4
    iput-boolean p1, p0, Lcom/privacy/checker/ui/UserPlanActivity;->c:Z

    .line 5
    iget-object v0, p0, Lcom/privacy/checker/ui/UserPlanActivity;->a:Landroid/widget/ImageView;

    invoke-virtual {v0, p1}, Landroid/widget/ImageView;->setSelected(Z)V

    .line 6
    iget-object v0, p0, Lcom/privacy/checker/ui/UserPlanActivity;->b:Landroid/widget/TextView;

    if-eqz p1, :cond_0

    sget p1, Les/ei0;->gdpr_user_plan_content:I

    goto :goto_0

    :cond_0
    sget p1, Les/ei0;->gdpr_user_plan_content_deny:I

    :goto_0
    invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(I)V

    return-void
.end method


# virtual methods
.method public onClickBack(Landroid/view/View;)V
    .locals 0

    .line 1
    invoke-virtual {p0}, Landroid/app/Activity;->finish()V

    return-void
.end method

.method public onClickToggle(Landroid/view/View;)V
    .locals 0

    .line 1
    iget-boolean p1, p0, Lcom/privacy/checker/ui/UserPlanActivity;->c:Z

    xor-int/lit8 p1, p1, 0x1

    iput-boolean p1, p0, Lcom/privacy/checker/ui/UserPlanActivity;->c:Z

    .line 2
    invoke-direct {p0, p1}, Lcom/privacy/checker/ui/UserPlanActivity;->a(Z)V

    return-void
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 0

    .line 1
    invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V

    .line 2
    sget p1, Lcom/privacy/checker/ui/UserPlanActivity;->d:I

    invoke-virtual {p0, p1}, Landroid/app/Activity;->setContentView(I)V

    .line 3
    sget p1, Les/ci0;->iv_toggle:I

    invoke-virtual {p0, p1}, Landroid/app/Activity;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/ImageView;

    iput-object p1, p0, Lcom/privacy/checker/ui/UserPlanActivity;->a:Landroid/widget/ImageView;

    .line 4
    sget p1, Les/ci0;->tv_content:I

    invoke-virtual {p0, p1}, Landroid/app/Activity;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/TextView;

    iput-object p1, p0, Lcom/privacy/checker/ui/UserPlanActivity;->b:Landroid/widget/TextView;

    .line 5
    invoke-static {p0}, Les/zh0;->b(Landroid/content/Context;)Z

    move-result p1

    invoke-direct {p0, p1}, Lcom/privacy/checker/ui/UserPlanActivity;->a(Z)V

    return-void
.end method

.method protected onPause()V
    .locals 1

    .line 1
    invoke-super {p0}, Landroid/app/Activity;->onPause()V

    .line 2
    iget-boolean v0, p0, Lcom/privacy/checker/ui/UserPlanActivity;->c:Z

    invoke-static {p0, v0}, Les/zh0;->a(Landroid/content/Context;Z)V

    return-void
.end method
